package com.wg.elasticsearch.service;

import com.wg.elasticsearch.mapper.ShowContentMapper;
import com.wg.elasticsearch.model.ShowContent;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by mc on 18/6/22.
 */
@Service
public class ShowContentServiceImpl implements ShowContentService {

    @Autowired
    private ShowContentMapper showContentMapper;
    @Override
    public List<ShowContent> getAll() {
        return showContentMapper.selectAll();
    }

    @Override
    public List<ShowContent> getByDte(Map map) {
        return showContentMapper.getByDte(map);
    }
}
